Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODNameResolver


CallObjectAccessor

The CallObjectAccessor method calls the object accessor of the calling part's semantic interface.

void CallObjectAccessor (in ODPart part, 
                         in ODDescType desiredClass,
                         in ODOSLToken containerToken,
                         in ODDescType containerClass, 
                         in ODDescType keyForm, 
                         in ODDesc keyData,
                         in ODOSLToken token);
part
A reference to the part calling this method (that is, the context for the supplied token).
desiredClass
The class of the desired Apple event object(s).
containerToken
A reference to the token that identifies the container for the desired objects.
containerClass
The class of the container for the desired Apple event object(s).
keyForm
The key form specified by the object specifier record for the object(s) to be located.
keyData
A reference to the descriptor object containing the key data specified by the object specifier record for the object(s) to be located.
token
A reference to the token to be filled in by the object accessor being called.
DISCUSSION
You can use this method to call the object accessor for a particular object class in a particular container. This is especially useful for constructing a list of tokens. Your part must call this method instead of directly calling the CallObjectAccessor method of your part's semantic-interface object.

The part parameter must be a reference to the part that calls this method.

EXCEPTIONS
The Apple Event Manager may throw an exception if the object accessor could not be found for the specified part.

Parts and OpenDoc may throw other exceptions.

SEE ALSO
The ODDescType type (page 925).
The ODSemanticInterface::CallObjectAccessor method (page 595).
Table 9-1 on page 408 in OpenDoc Programmer's Guide.
The "Resolving and Creating Object Specifier Records" chapter of Inside Macintosh: Interapplication Communication.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help